<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
		<form:form action="${mvcpath}/codesave.do" modelAttribute="entity" method="post" id="codeForm">
		 <form:hidden path="id"/>
		 <form:hidden path="codeType.id"/>
		 
	 	 <label class="form-label" >代码</label> 
	 <form:input path="code"  cssClass="form-field half" />
	 
		 <label class="form-label" >代码值</label> 
		<form:input path="stringValue"   cssClass="form-field half"/>
		
	 <label class="form-label">是否可用</label>
	 
	 <div class="radiocheck">
	 <input id="enabled1" type="radio" value="true" name="enable" <c:if test="${entity.enable}"> checked</c:if>/><label for="enabled1">可用</label>
	 <input id="enabled2" type="radio" value="false" name="enable" <c:if test="${!entity.enable}"> checked</c:if>/><label for="enabled2">不可用</label>
	 </div>
         
		<div class="clear"></div>
		<br/>
		<hr/>
		 
		<div style="clear:both;height:36px;" >
		<ul style="float:right;">
			 <li style="float:left;"><input id="cancel" class="button themed" type="button" value="取 消" name="cancel" onclick="cacelSave('${entity.codeType.id}')"/></li>
			 <li style="float:left;"><input id="validate" class="button themed" type="button" value="保 存" name="submit"  onclick="saveCode()"/></li>
 		</ul>
		</div>
</form:form>